#ifndef		IA_HH__
# define	IA_HH__

# include	<SFML/Network.hpp>
# include	<iostream>

class		IA
{
public:
  IA() { }
  IA(const char*);
  ~IA() { }
  bool		connectServer(const char*, const char*);
  bool		discoverServer(void);
  class			Data
  {
  public:
    Data(void): rule3(true), rule5break(true), time(50) {}
    ~Data(void){}
    bool		getRule3(void) const;
    void		setRule3(bool);
    bool		getRule5break(void) const;
    void		setRule5break(bool);
    size_t		getTime(void) const;
    void		setTime(size_t);
  private:
    bool		rule3;
    bool		rule5break;
    size_t		time;
  };
private:
  sf::IPAddress	localIp;
  sf::IPAddress	serverIp;
  sf::SocketTCP	me;
  sf::Packet	packet;
  IA::Data	datas;
};

#endif		/* !IA_HH__ */
